package com.github.service.cms;

import java.util.List;

import com.github.common.exception.BusinessException;
import com.github.form.cms.ResourceForm;
import com.github.module.cms.Resource;

/**
 * <p>User: Mu Yunlong
 * <p>Date: 2016年3月3日 下午4:46:26
 * <p>Version: 1.0
 */
public interface ResourceService {

    List<Resource> findAll();

    Resource get(String id);

    int update(ResourceForm form);

    int add(ResourceForm form);

    int delete(String id);

    void enable(String id) throws BusinessException;

    void disable(String id) throws BusinessException;

}